/**
 * Created by 84497 on 2016/8/8.
 */
function nav(name, csskey,cssvalue) {
  var url = window.location.pathname + window.location.search;

  var v1 = "";
  $(name).each(function () {
    v1 = $(this).attr("href");
      var v3 = $(this).attr(csskey,"");
    if (v1 == url) {
      var v2 = $(this).attr(csskey, cssvalue);
    }
  })
}